package aquarium.factory;

import java.awt.Point;

import aquarium.factory.FishType;
import aquarium.gui.Aquarium;
import aquarium.items.Stone;
import aquarium.util.RandomNumber;

public class StoneFactory extends AquariumItemFactory<Stone> {

	@Override
	public Stone newItems(FishType type) {
		return newItems();
	}

	public Stone newItems(){
		int size = RandomNumber.randomValue(Stone.getMinWidth(), Stone.getMaxWidth());
		Point position = RandomNumber.randomPoint(0, Aquarium.SIZE_AQUA_X-Stone.getMaxWidth(), 0, Aquarium.SIZE_AQUA_Y-Stone.getMaxWidth());
		Stone s = new Stone(position, size);
		return s;
	}

}
